/*
 * File Name:               UIDesignConfig.cs
 *
 * Description:             普通类
 * Author:                  lisiyu
 * Create Date:             2016/08/09
 */

using UnityEngine;

public class UIDesignConfig
{
    [System.Serializable]
    public class CResolution
    {
        public string Name;
        public int Width;
        public int Height;
    }

    public string DocumentDirectory;
    public CResolution[] Resolutions;

    public static UIDesignConfig load(string path)
    {
        var txt = Resources.Load<TextAsset>(path);
        var ret = JsonUtility.FromJson<UIDesignConfig>(txt.text);

        return ret;
    }
}